#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>

class QAction;
class QLabel;
class EditGui;
class CreateItem;
class CreateMapItem;
class CreateMap;
class Welcome;
class DrawMap;

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    MainWindow();

protected:
    void closeEvent(QCloseEvent *event);

private slots:
    void editItem();
    void editMapItem();
    void editMap();
       
private:
    void createActions();
    void createMenus();
    void startMapWindow();

    void deleteDialogs();

    // All the dialogs
    CreateItem *createItem;
    CreateMapItem *createMapItem;
    CreateMap *createMap;
    Welcome *welcome;

    // Create menu
    QMenu *createMenu;
    QAction *createItemAction;
    QAction *createMapItemAction;
    QAction *createMapAction;

    // SDL window
    class SDL_Surface *screen;
    class DrawMap *drawMap_;
    
    // Location to edit
    class Location *loc_;
    
    };

#endif

